<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ include file="/view/common/header-talent.jspf"%>

		<div style="width:500px;margin:0px auto">
			 <h1>求职者信息修改</h1>
			 <hr>
				<form class="form-horizontal" role="form" action="<%=request.getContextPath() %>/TalentServlet?command=update" method="post" onsubmit="return validate();">
				<input type="hidden" name="id" value="${talent.id }">
				  <div class="form-group">
				    <label for="code" class="col-sm-2 control-label">帐号：</label>
				    <div class="col-sm-10">
				      <input type="text" class="form-control" id="code" name="code" value="${talent.code }" readonly="readonly"><span id="codeInfo"></span>
				    </div>
				  </div>
				   <div class="form-group">
					    <label for="name" class="col-sm-2 control-label">姓名：</label>
					    <div class="col-sm-10">
					      <input type="text" class="form-control" id="name" name="name" value="${talent.name }"><span id="nameInfo"></span>
					    </div>
				  </div>
				   <div class="form-group">
					    <label for="phone" class="col-sm-2 control-label">手机：</label>
					    <div class="col-sm-10">
					      <input type="text" class="form-control" id="phone" name="phone" value="${talent.phone }"><span id="phoneInfo"></span>
					    </div>
				  </div>
				   <div class="form-group">
					    <label for="email" class="col-sm-2 control-label">email：</label>
					    <div class="col-sm-10">
					      <input type="text" class="form-control" id="email" name="email" value="${talent.email }"><span id="emailInfo"></span>
					    </div>
				  </div>
				   <div class="form-group">
					    <label for="age" class="col-sm-2 control-label">年龄：</label>
					    <div class="col-sm-10">
					    <select name="age" id="age" class="form-control">
							<option value="${talent.age }">${talent.age }</option>
							<script>
								for (var i = 10; i <= 80; i++) {
									document.write('<option value="' + i + '">' + i + '</option>');
								}
							</script>
						</select>
						<span id="ageInfo"></span>
					    </div>
				  </div>
					 <div class="form-group">
					    <label for="gender" class="col-sm-2 control-label">性别：</label>
					    <div class="col-sm-10">
					      <input type="radio" name="gender" value="1">男&nbsp;&nbsp;&nbsp;
					      <input type="radio" name="gender" value="2">女
					      <span id="genderInfo"></span>
					    </div>
				  </div>
				  <div class="form-group">
					    <label for="hobby" class="col-sm-2 control-label">爱好：</label>
					    <div class="col-sm-10">
					     <input type="checkbox" name="hobby" value="看书">看书
						 <input type="checkbox" name="hobby" value="编程">编程
						 <input type="checkbox" name="hobby" value="旅游">旅游
						 <input type="checkbox" name="hobby" value="音乐">音乐
						 <span id="hobbyInfo"></span>
					    </div>
				  </div>
				  
				  <div class="form-group">
				    <div class="col-sm-offset-2 col-sm-10">
				      <button type="submit" class="btn btn-info btn-lg">修改</button>
				    </div>
				  </div>
				  <button class="btn btn-default" onclick="location='<%=request.getContextPath() %>/TalentServlet?command=main'">返回个人首页</button>
				</form>
		</div>
<%@ include file="/view/common/footer.jspf" %>
		<script src="<%=request.getContextPath() %>/static/talent/talent-register.js"></script>
		<script src="<%=request.getContextPath() %>/static/talent/talent-info.js"></script>
		<script>
		var gender = '${talent.gender}';
		var hobby = '${talent.hobby}';
		</script>